package com.tenbent.product.base.security;

import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource;

import java.util.Collection;
import java.util.Map;

/**
 * 获取资源权限并缓存
 *
 * Created by ThinkPad on 2017/9/8.
 */
public interface CustomFilterInvocationSecurityMetadataSource extends FilterInvocationSecurityMetadataSource {

	/** 获取所有资源对应的权限 */
	Map<String, Collection<ConfigAttribute>> getAllResoucePermestion();
}
